package qldc.pm.ksdl.util;

import org.apache.commons.collections.Predicate;

import qldc.pm.csdl.cd90.model.jaxb.CongDanJAXB;

public class SoDDCNPredicate implements Predicate {
	String compareString;
	
	public SoDDCNPredicate(String compareString) {
		this.compareString = compareString;
	}

	@Override
	public boolean evaluate(Object arg0) {
		CongDanJAXB c = (CongDanJAXB) arg0;
		
		if (c.getSoDinhDanhCaNhan().equals(compareString)) {
			return true;
		}
		
		return false;
	}


}
